<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	
  <head>
    <base href="<%=basePath%>">
    
    <title>个人考勤信息</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="<%=path%>/themes/classic_blue/css/base.css"
			rel="stylesheet" type="text/css" />
			<link href="<%=path%>/themes/classic_blue/css/main_style.css"
			rel="stylesheet" type="text/css" />
	<style type="text/css">
	  td{
	  	font-size:20px;
	  	
	  };
	</style>			
	<script type="text/javascript"
			src="<%=path%>/themes/classic_blue/js/jquery-1.6.2.min.js"></script>
	<script type="text/javascript">
		function month(num){
		  $("#month").val(parseInt($("#month").val())+num);
		  if($("#month").val()==12){
		  	$("#year").val(parseInt($("#year").val())+num);
		  	$("#month").val(0);
		  }
		  $("#dataFrom").submit();
		}
		
		function year(num){
			$("#year").val(parseInt($("#year").val())+num);
			("#dataFrom").submit();;
		}
	</script>			
  </head>
  
  <body>
    <form action="kqxx/getGrykq.do" method="post" id="dataFrom">
    	<s:hidden name="actionId"></s:hidden>
    	<s:hidden name="year" id="year"></s:hidden>
    	<s:hidden name="month" id="month"></s:hidden>
    	<div align="center"><a title="上一年" href="href="javascript:year(-1)"">&lt;&lt;</a><a href="javascript:month(-1)"><font>上个月&nbsp;</font></a><s:property value="year"/>—<s:property value="month+1"/><a href="javascript:month(1)"><font>下个月</font></a>&nbsp;<a title="下一年"  href="javascript:year(1)">&gt;&gt;</a></div>    
    	 <DIV style="POSITION: relative; WIDTH: 100%; MARGIN-BOTTOM: -2px; HEIGHT: 14px">
					<DIV style="WIDTH: 12px; BACKGROUND: url(<%=path%>/images/rCorner.gif) no-repeat; FLOAT: left; HEIGHT: 14px;width:1%"></DIV>
					<DIV style="BACKGROUND: url(<%=path%>/images/corner_bg.gif) repeat-x; FLOAT: left; HEIGHT: 14px;width:98%"></DIV>
					<DIV style="WIDTH: 11px; BACKGROUND: url(<%=path%>/images/corner_left.gif) no-repeat right top; FLOAT: right; HEIGHT: 14px;width:1%"></DIV>
		</DIV>
      <table style="width:100%;height:91%" class="ui-table-form">
 		<thead>
 			<th>日</th><th>一</th><th>二</th><th>三</th><th>四</th><th>五</th><th>六</th> 		
 		</thead>
 		<s:iterator value="grykqList" id="grkq"  status="status"> 		
 			<tr> 				
 				<td><a href="javascript:alert('详情')"><s:property value="grykqList[#status.index][0]"/></a></td>
 				<td><s:property value="grykqList[#status.index][1]"/></td>
 				<td><s:property value="grykqList[#status.index][2]"/></td>
 				<td><s:property value="grykqList[#status.index][3]"/></td>
 				<td><s:property value="grykqList[#status.index][4]"/></td>
 				<td><s:property value="grykqList[#status.index][5]"/></td>
 				<td><s:property value="grykqList[#status.index][6]"/></td>
 			</tr>
 		</s:iterator>
 		<tr></tr>     
      </table>
    </form>
  </body>
</html>
